package com.xiaoxx.controller.coin;

import com.xiaoxx.service.BinanceExchangeinfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/exchangeInfo")
@Api(value = "ExchangeInfoControler", tags = "交易对数据")
public class ExchangeInfoControler {
    @Autowired
    private BinanceExchangeinfoService exchangeInfoService;
    @RequestMapping(value = "/refresh", method = RequestMethod.GET)
    @ApiOperation("刷新")
    public void refreshExchangeInfo() {
         exchangeInfoService.refreshExchangeInfo();
    }
}
